package com.pbc.gmp.model.basemodel;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 *  组织对象，该表可以生成完整的组织树 
 * </p>
 *
 * @author kjk
 * @since 2017-12-23
 */
@TableName("t_org")
public class Org implements Serializable,Principal {
	public static final String PRINCIPAL_TYPE="org";
    private static final long serialVersionUID = 1L;

	/**
	 * 组织机构的id
	 */
	private Long id;

	/**
	 * 组织机构的名称
	 */
	private String name;

	/**
	 * 
	 */
	private String ptype;

	/**
	 * 组织机构所属类型的id，此处不要使用ManyToOne
	 */
	private Long typeid;

	/**
	 * 组织机构所属类型的名称，冗余
	 */
	private String typename;

	/**
	 * 组织机构的排序号
	 */
	private Integer ordernum;

	/**
	 * 组织机构的父亲组织
	 */
	private Long pid;

	/**
	 * 管理类型,1是单位，2是内设部门
	 */
	private Integer managertype;

	/**
	 * 组织机构的地址
	 */
	private String address;

	/**
	 * 组织机构的电话
	 */
	private String phoneno;

	/**
	 * 扩展属性1，用于在针对某些特殊的组织存储相应的信息
	 */
	private String att1;

	/**
	 * 扩展属性2，用于在针对某些特殊的组织存储相应的信息
	 */
	private String att2;

	/**
	 * 扩展属性3，用于在针对某些特殊的组织存储相应的信息
	 */
	private String att3;

	/**
	 * 
	 */
	private String state;



	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPtype() {
		return ptype;
	}

	public void setPtype(String ptype) {
		this.ptype = ptype;
	}

	public Long getTypeid() {
		return typeid;
	}

	public void setTypeid(Long typeid) {
		this.typeid = typeid;
	}

	public String getTypename() {
		return typename;
	}

	public void setTypename(String typename) {
		this.typename = typename;
	}

	public Integer getOrdernum() {
		return ordernum;
	}

	public void setOrdernum(Integer ordernum) {
		this.ordernum = ordernum;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public Integer getManagertype() {
		return managertype;
	}

	public void setManagertype(Integer managertype) {
		this.managertype = managertype;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhoneno() {
		return phoneno;
	}

	public void setPhoneno(String phoneno) {
		this.phoneno = phoneno;
	}

	public String getAtt1() {
		return att1;
	}

	public void setAtt1(String att1) {
		this.att1 = att1;
	}

	public String getAtt2() {
		return att2;
	}

	public void setAtt2(String att2) {
		this.att2 = att2;
	}

	public String getAtt3() {
		return att3;
	}

	public void setAtt3(String att3) {
		this.att3 = att3;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

}
